package com.liuyi.netty.im.test.lychat.im;

import com.liuyi.netty.im.commons.codes.data.event.Message;
import com.liuyi.netty.im.commons.codes.data.event.message.playload.Playload;
import com.liuyi.netty.im.server.handle.service.MessageListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 消息监听 实现
 *
 * @author Mr.Fmy
 * @since 2021/12/25
 */
@Service
@Slf4j
public class LychatMessageListener implements MessageListener {


    @Override
    public void sendSuccess(Message<? extends Playload> message) {
//        log.debug(message.getMessageId() + " 发送成功，发送内容：" + message.getPlayload().getText());
    }

    @Override
    public void sendFail(Message<? extends Playload> message) {
//        log.debug(message.getMessageId() + " 发送失败，发送内容：" + message.getPlayload().getText());
    }
}
